KEXEC: fix kexec_get_range_compat to fail vocally.
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2011 19:42:46 +0000 (19:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2011 19:42:46 +0000 (19:42 +0000)
commit2043419cfc831be0153580990ae5f812984e8ec5
treecb63bc54fc59e6a226384b7e3b79dee03bab8b02
parentab736eba59c572b692df1d81a1a7e63b366235c2
KEXEC: fix kexec_get_range_compat to fail vocally.

Fail with -ERANGE rather than silently truncating 64bit values (a
physical address and size) into 32bit integers for dom0 to consume.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Simplify the bitwise arithmetic a bit.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/common/kexec.c